import re, time, json, logging, hashlib, base64, asyncio

from web.coroweb import get, post

from web.model import User, Comment, Blog, next_id


@get('/')
def index(request):
    users = yield from User.find_all()
    return {
        '__template__': 'test.html',
        'user': users
    }
